//
//  CitySectionModel.m
//  团购
//
//  Created by 樊荣海 on 15/1/21.
//  Copyright (c) 2015年 樊荣海. All rights reserved.
//

#import "CitySectionModel.h"

@implementation CitySectionModel

- (void)setCities:(NSMutableArray *)cities {

    NSMutableArray *array = [NSMutableArray array];
    
    for (NSDictionary *dict in cities) {
        
        if (![dict isKindOfClass:[NSDictionary class]]) {
        
            _cities = cities;
            return;
        }
        
        CityModel *city = [[CityModel alloc] init];
        
        [city setValuesForKeysWithDictionary:dict];
        
        [array addObject:city];
    }
    
    _cities = array;
}

@end
